package com.itheima.jinjie.lianxi;

public class Graduate extends  Student {
    String direction;

    public Graduate(String name, int age, String gegree, String direction) {
        super(name, age, gegree);
        this.direction = direction;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public void show(){
        System.out.println(name+","+age+","+gegree+","+direction);
    }
}
